/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pb.diplom.first.tables;

import java.math.BigDecimal;

/**
 *
 * @author Slava
 */
public class Commodity {

    private Long id;
    private Long producerId;
    private Long categoryId;
    private String model;
    private BigDecimal price;
    private String description;
    private String image;
    private String storage;
    
    public Commodity(){
        
    }

    public Commodity(Long id, Long producerId, Long categoryId, String model, BigDecimal price, String description, String image, String storage) {
        this.id = id;
        this.producerId = producerId;
        this.categoryId = categoryId;
        this.model = model;
        this.price = price;
        this.description = description;
        this.image = image;
        this.storage = storage;
    }

    public Long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getProducerId() {
        return producerId;
    }

    public void setProducerId(Long producerId) {
        this.producerId = producerId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStorage() {
        return storage;
    }

    public void setStorage(String storage) {
        this.storage = storage;
    }

    @Override
    public String toString() {
        return "Commodity{" + "model=" + model + ", description=" + description + ", image=" + image + ", storage=" + storage + '}';
    }
    
    

}
